import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import mainPage from '../views/mainPage'
import detail from '../views/detail'
import backstage from '../views/backstage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/mainPage',
      name:'mainPage',
      component:mainPage
    },
    {
      path:'/detail',
      name:'detail',
      component:detail
    },
    {
      path:'/backstage',
      name:'backstage',
      component:backstage
    }
  ]
})
